# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AdditionalDiscount',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('discountid', models.IntegerField()),
                ('agentcompanyid', models.CharField(max_length=128)),
                ('type', models.CharField(max_length=256)),
                ('discount1', models.DecimalField(max_digits=3, decimal_places=2)),
                ('discount2', models.DecimalField(max_digits=3, decimal_places=2)),
            ],
        ),
        migrations.CreateModel(
            name='Agent',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('agentid', models.CharField(max_length=32)),
                ('password', models.CharField(max_length=64)),
                ('operationpassword', models.CharField(max_length=64)),
                ('name', models.CharField(max_length=128)),
                ('email', models.EmailField(max_length=128)),
                ('weixin', models.CharField(max_length=128)),
                ('telephone', models.CharField(max_length=32)),
                ('cellphone', models.CharField(max_length=32)),
                ('website', models.CharField(max_length=256)),
                ('avatar', models.CharField(max_length=128)),
                ('role', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='AgentCompany',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('agentcompanyid', models.CharField(max_length=128)),
                ('agentid', models.CharField(max_length=32)),
                ('companyid', models.IntegerField()),
                ('discount1', models.DecimalField(max_digits=3, decimal_places=2)),
                ('discount2', models.DecimalField(max_digits=3, decimal_places=2)),
            ],
        ),
        migrations.CreateModel(
            name='Bonus',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('bonusid', models.CharField(max_length=32)),
                ('source', models.CharField(max_length=32)),
                ('bvalue', models.IntegerField()),
                ('starttime', models.DateTimeField()),
                ('endtime', models.DateTimeField()),
                ('remain', models.IntegerField()),
                ('type', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Company',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('companyid', models.IntegerField()),
                ('fullname', models.CharField(max_length=256)),
                ('shortname', models.CharField(max_length=128)),
                ('cityid', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='ContractInformation',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('contractid', models.IntegerField()),
                ('customid', models.CharField(max_length=32)),
                ('name', models.CharField(max_length=128)),
                ('gender', models.IntegerField()),
                ('phone', models.CharField(max_length=32)),
                ('cityid', models.IntegerField()),
                ('email', models.EmailField(max_length=128)),
                ('address', models.CharField(max_length=256)),
            ],
        ),
        migrations.CreateModel(
            name='Custom',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('customid', models.CharField(max_length=32)),
                ('password', models.CharField(max_length=64)),
                ('nickname', models.CharField(max_length=128)),
                ('email', models.EmailField(max_length=128)),
                ('weixin', models.CharField(max_length=128)),
                ('avatar', models.CharField(max_length=128)),
                ('balance', models.DecimalField(max_digits=12, decimal_places=2)),
            ],
        ),
        migrations.CreateModel(
            name='Insurance',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('insuranceid', models.IntegerField()),
                ('type', models.CharField(max_length=256)),
            ],
        ),
        migrations.CreateModel(
            name='InsuranceCoefficient',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('coefficientid', models.IntegerField()),
                ('companyid', models.IntegerField()),
                ('insuranceid', models.IntegerField()),
                ('subtypeid', models.IntegerField()),
                ('coefficient1', models.DecimalField(max_digits=12, decimal_places=2)),
                ('coefficient2', models.DecimalField(max_digits=12, decimal_places=2)),
            ],
        ),
        migrations.CreateModel(
            name='OrderBonus',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('bonusid', models.CharField(max_length=32)),
                ('orderid', models.CharField(max_length=64)),
            ],
        ),
        migrations.CreateModel(
            name='OrderImage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('url', models.CharField(max_length=128)),
                ('orderid', models.CharField(max_length=64)),
                ('type', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='OrderInsurance',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('insuranceid', models.IntegerField()),
                ('orderid', models.CharField(max_length=64)),
                ('price', models.DecimalField(max_digits=12, decimal_places=2)),
            ],
        ),
        migrations.CreateModel(
            name='PolicyOrder',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('orderid', models.CharField(max_length=64)),
                ('customid', models.CharField(max_length=32)),
                ('companyid', models.IntegerField()),
                ('angentid', models.CharField(max_length=32)),
                ('contactid', models.IntegerField()),
                ('ordertime', models.DateTimeField()),
                ('starttime', models.DateTimeField()),
                ('amountofmoney', models.DecimalField(max_digits=12, decimal_places=2)),
                ('status', models.IntegerField()),
                ('statushistory', models.TextField()),
                ('payingway', models.IntegerField()),
                ('payingstatus', models.IntegerField()),
                ('payingno', models.CharField(max_length=128)),
                ('fetchmode', models.IntegerField()),
                ('expresscompany', models.CharField(max_length=32)),
                ('expressno', models.CharField(max_length=128)),
                ('specificdriver', models.CharField(max_length=1024)),
                ('callforservice', models.BooleanField()),
                ('supplement', models.TextField()),
                ('remark', models.TextField()),
            ],
        ),
    ]
